package net.scala.chapter1.o

/**
 * In Scala we create variables either using the val keyword or the var keyword. Using val we get a read-only variable that’s immutable.
 * @author chenyy2@corp.21cn.com
 */
class Programmer(var name: String, var language: String, var favDrink: String) {
  // 重载
  def this(name:String) = this(name,null,null)
  def this(name:String,language:String) = this(name,language,null)
}
